package com.abc.chain.demo;

/**
 * 老师处理
 */
public class TeacherHandler extends Handler {


   @Override
   public void handleRequest(Long day) {

      if (day <= 3) {
         System.out.println("The teacher approval");
      }
      else {
         if (getNext() != null) {
            getNext().handleRequest(day);
         }
         else {
            System.out.println("No person approal");
         }
      }
   }
}
